package com.zhifubao;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {

        double money = 50;

        System.out.println("你需要支付的金额为：" + money);

        System.out.println("请选择支付方式：1.银行卡 2.支付宝 3.微信");

        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();

        switch(i) {
            case 1:
                Pay bankPay = new BankPay();
                bankPay.pay(money);
                break;
            case 2:
                System.out.println("支付宝支付");
                break;
            case 3:
                System.out.println("微信支付");
                break;
        }
    }
}